package string;

public class IndexOf {
    public static void main(String[] args) {
        String str="thinking in java";
        int index=str.indexOf('i',4);
        int index1=str.lastIndexOf("in");
        System.out.println(index1);
    }
}
